/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dischargesimulation.lib;

/**
 *
 * @author Admin
 */
public class Numbers {
    public static boolean isCorrectFloat(String s){
        try{
            Float.parseFloat(s);
            return true;
        }catch(Exception e){
            return false;
        }
    }
    public static double strToNumber(String s){
        return  Double.parseDouble(s);
    }
    public static String numberToStr(double f){
        return  Double.toString(f);
    }
    
}
